/**
 * {xtype : "uxTextField",fieldLabel : "主&nbsp;&nbsp;题&nbsp;&nbsp;词",name :
 * "dispatchedDoc.keyword",anchor :
 * '99%',tooltip:{text:'对外单位行文请填写主题词。',title:'提示'} }
 */
Ext.ux.TextField = Ext.extend(Ext.form.TextField, {
	tooltip : {},
	onRender : function(ct, position) {
		Ext.ux.TextField.superclass.onRender.call(this, ct, position);
		if (this.tooltip.text) {
			new Ext.ToolTip( {
				target : this.id,
				trackMouse : false,
				draggable : true,
				hideDelay:1000,
				maxWidth : 200,
				minWidth : 100,
				title : this.tooltip.title,
				html : this.tooltip.text
			});
		}
	}
});
Ext.reg('tooltipTextField', Ext.ux.TextField);
